import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-demo04-lianxi',
  templateUrl: './demo04-lianxi.component.html',
  styleUrls: ['./demo04-lianxi.component.css']
})
export class Demo04LianxiComponent implements OnInit {
    // 可以声明一个变量的类型
    // 强类型语言的特点
  list:any[] = [
      {bookName: '三国演义', bookAuthor: '罗贯中', bookPrice: 188},
      {bookName: '水浒传', bookAuthor: '施耐庵', bookPrice:290},
      {bookName: '西游记', bookAuthor: '吴承恩', bookPrice:398},
      {bookName: '红楼梦', bookAuthor: '曹雪芹', bookPrice:490}
  ];
  str:string = 'a';
  isMember:boolean = true;
  constructor() { }

  ngOnInit() {
  }

}
